package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.yunkeji.common.core.domain.BaseEntity;

/**
 * APP版本信息业务对象 ykj_app_version
 *
 * @author 老张
 * @date 2024-05-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AppVersionBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 客户端类型(1陌对安卓2陌对ios3mo聊安卓4mo聊ios)
     */
    @NotNull(message = "客户端类型(1陌对安卓2陌对ios3mo聊安卓4mo聊ios)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer plat;

    /**
     * 客户端渠道号
     */
    @NotNull(message = "客户端渠道号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer agent;

    /**
     * 最新发布版本自增号
     */
    @NotNull(message = "最新发布版本自增号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long releaseVersion;

    /**
     * 最新版本自增号
     */
    @NotNull(message = "最新版本自增号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long lastVersionIndex;

    /**
     * 最低可用版本自增号
     */
    @NotNull(message = "最低可用版本自增号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long validVersionIndex;

    /**
     * 最新版本点分号
     */
    @NotBlank(message = "最新版本点分号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lastVersionName;

    /**
     * 最新版本下载地址
     */
    @NotBlank(message = "最新版本下载地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lastVersionUrl;

    /**
     * 最新版本更新内容
     */
    @NotBlank(message = "最新版本更新内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lastVersionContent;

    /**
     * 
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;


}
